package com.lovely3x.common.widgets;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.GridView;

public class EnoughHeightGridView extends GridView {
    EnoughHeightGridView mGridView = this;
    private boolean islisten = false;
    private int downY;
    private int moveY;

    public EnoughHeightGridView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public EnoughHeightGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public EnoughHeightGridView(Context context) {
        super(context);
    }

    /**
     * 设置不滚动
     */
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);

    }
}